package org.wdcode.web.socket.server;

import org.wdcode.core.factory.BaseFactory;

/**
 * Socket服务端工厂
 * @author WD
 * @since JDK6
 * @version 1.0 2010-01-26
 */
public final class SocketServerFactory extends BaseFactory<SocketServer> {
	// 工厂
	private final static SocketServerFactory	FACTORY;

	/**
	 * 静态初始化
	 */
	static {
		FACTORY = new SocketServerFactory();
	}

	/**
	 * 返回工厂
	 * @return 工厂
	 */
	public final static SocketServerFactory getFactory() {
		return FACTORY;
	}

	/**
	 * 实例化一个新对象
	 * @return SocketServer
	 */
	@Override
	public final SocketServer newInstance() {
		return new SocketServerImpl();
	}
}
